/***************************************************************************
 *   Copyright (C) 2009 by ywchen2000                         *
 *   ywchen2000@gmail.com                                                          *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef CHOOSEFILE_H
#define CHOOSEFILE_H
#include"ui_ChooseFile.h"
#include"ds/tree.h"
#include <QDialog>
#include<QList>
#include<QString>
class ChooseFile:public QDialog
{
	Q_OBJECT
	public:
		ChooseFile(QWidget* parent);
		virtual ~ChooseFile(void);	
		void GetTree(tree* tree);
		void exec();
		Ui::ChooseFile ui;	
	private:
		tree* FileTree;
	public slots:
		void GetItemText(QListWidgetItem* item);
		void GetText(const QString& Text);
		//void FileSort(const QString& text);
	     signals:
		void LoadCode(const QString& filename);
		void FindFile(const QString text,QListWidget* l);
};
#endif
